-- GENERATED SPELL FOR [Kurzen Medicine Man] --


function spell0_940(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(6064,pUnit)
pUnit:RegisterEvent('Sorts_940', 3000, 1)
end

function spell1_940(pUnit, Event) --@Inner Fire,Self--
pUnit:FullCastSpellOnTarget(588,pUnit)
pUnit:RegisterEvent('Sorts_940', 631, 1)
end

function spell2_940(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(6077,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_940', 15000, 1)
end

function Sorts_940(pUnit, Event)
local choix_sorts_940 = math.random(0, 2)
if choix_sorts_940 == 0 then
pUnit:RegisterEvent('spell0_940', 1, 1)
end
if choix_sorts_940 == 1 then
pUnit:RegisterEvent('spell1_940', 1, 1)
end
if choix_sorts_940 == 2 then
pUnit:RegisterEvent('spell2_940', 1, 1)
end
end

function mob940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_940', math.random(1500, 3000), 1)
end

function mob940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(940, 1, 'mob940_Action')
RegisterUnitEvent(940, 2, 'mob940_Leave')
RegisterUnitEvent(940, 3, 'mob940_Kill')
RegisterUnitEvent(940, 4, 'mob940_Die')
